#include<stdio.h>
int main()
{
    int x,y,z,k;
    scanf("%d%d%d%d",&x,&y,&z,&k);
    int t1 = x/10;
    int t2 = z/10;
    int t3 = k/10;
        if(t1+y+t2<=25)
        {
            printf("nice!nilou!\n");
        }
        else
        {
            if(t3<=25)
            {
                printf("good!nilou!\n");
            }
            else
            {
                printf("sorry...nilou...QAQ\n");
            }
        }
    return 0;
}